package com.student.dao;

import java.util.ArrayList;

import org.apache.ibatis.annotations.Param;

import com.common.model.Project;
import com.common.model.StudentUser;
import com.common.model.TeacherUser;
import com.common.model.TimePlan;
import com.student.model.IntentProject;
import com.teacher.model.ProjAndProf;

public interface StudentDao {

	//学生个人信息维护
	public StudentUser studentInfo(@Param("id")Integer id);
	public boolean updateInfo(@Param("id")Integer id,@Param("telephone")String telephone,@Param("qq")String qq);
    public boolean updatePassword(@Param("id")Integer id,@Param("password")String password);
    
    //查询学院时间计划
    public TimePlan getTimePlan(@Param("collegeId")Integer collegeId);
    
    //题目查询
    public ArrayList<TeacherUser> getTeachers(@Param("depart_id")Integer depart_id);
    public ArrayList<Project> getProjects(@Param("prof_id")Integer prof_id,@Param("start")int start,@Param("end")int end);
    public ArrayList<Project> getProjectsByTeacher(@Param("tea_id")Integer tea_id,@Param("start")int start,@Param("end")int end);
    
    //意向题目操作
    public ArrayList<IntentProject> getIntentProjects(Integer stu_id);
    public boolean addIntentProject(@Param("level")int level,@Param("pro_id")Integer pro_id,@Param("stu_id")Integer stu_id,@Param("message")String message);
    public boolean updateMessage(@Param("id")Integer id,@Param("message")String message);
    public boolean updateIntent(@Param("id")Integer id,@Param("level")int level);
    public boolean removeIntent(@Param("id")Integer id);
    public Project getFinalProject(@Param("stu_id")Integer stu_id);
    
    //论文提交
    public boolean updateCommitmentsPath(@Param("path")String path,@Param("stu_id")Integer stu_id);
    public boolean updateEssayPath(@Param("path")String path,@Param("stu_id")Integer stu_id);
}
